app.service('sellService', ['ajax','$q',function (ajax,$q) {
    this.list = function (data){
        var deferred = $q.defer();
        ajax.get({
            url: 'back/seller/page',
            data: data
        }).then(function (result) {

            deferred.resolve(result);

        })
        return deferred.promise;



    }


    this.detail = function(data){
        var deferred = $q.defer();
        ajax.get({
            url: 'back/seller/query',
            data: data
        }).then(function (result) {

            deferred.resolve(result);
        })
        return deferred.promise;

    }
}]);